package com.qing.function;

        import java.util.function.IntPredicate;
        import java.util.function.Predicate;

public class IntPredicateService {

    public static void main(String[] args) {
        IntPredicate evenNumbers = (int i) -> i % 2 == 0;
        System.out.println(evenNumbers.test(1000009000)); //无需装箱

        Predicate<Integer> oddNumbers = (Integer i) -> i % 2 != 0;
        System.out.println(oddNumbers.test(1000));
    }
}